﻿using System;
using Platformer_Example.Content.Images.Player;
using Platformer_Example.Controller.Input;
using Platformer_Example.Controller.Terrain;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Platformer_Example.Controller.Character.Player
{
    public partial class Player
    {
        protected override void CreateIdleStateObjects()
        {
        }

        protected override void InitializeIdleState()
        {
            if (IsCarryingObject)
            {
                Character.Sprite = SpritesheetPlayer.GetSprite(SpritesheetPlayer.IdleState.Carry);
                Character.OriginAbsolute = new TE_Vector2(8, 32);
                CarriedObject.Position = new TE_Vector2(0, -21);
            }
            else
            {
                Character.Sprite = SpritesheetPlayer.GetSprite(SpritesheetPlayer.IdleState.Idle);
                Character.OriginAbsolute = new TE_Vector2(8, 32);
            }
        }

        protected override void UpdateIdleState(TimeSpan gameTime)
        {
        }

        protected override void EndIdleState()
        {
        }

        protected override void OnKeyPressIdle(InputState.Key key)
        {
        }

        protected override void OnKeyReleaseIdle(InputState.Key key)
        {
        }
    }
}